package com.stylefeng.guns.core.excel;



public class ExcelMapping{
	/**列索引 0开始*/
	private int cloumnIndex = 0;
	/**对应javaBean中属性的类型*/
	private Class<?> clazz = Object.class;
	/**转换器*/
	private Convert convert = null;
	private boolean nullable = true;
	
	public int getCloumnIndex() {
		return cloumnIndex;
	}
	public void setCloumnIndex(int cloumnIndex) {
		this.cloumnIndex = cloumnIndex;
	}
	public Convert getConvert() {
		return convert;
	}
	public void setConvert(Convert convert) {
		this.convert = convert;
	}
	
	public Class<?> getClazz() {
		return clazz;
	}
	public void setClazz(Class<?> clazz) {
		this.clazz = clazz;
	}
	
	public boolean isNullable() {
		return nullable;
	}
	public void setNullable(boolean nullable) {
		this.nullable = nullable;
	}
	public ExcelMapping(int cloumnIndex, Class<?> clazz) {
		super();
		this.cloumnIndex = cloumnIndex;
		this.clazz = clazz;
	}
	
	public ExcelMapping(int cloumnIndex, Class<?> clazz,boolean nullable) {
		super();
		this.cloumnIndex = cloumnIndex;
		this.clazz = clazz;
		this.nullable = nullable;
	}
	
	public ExcelMapping(int cloumnIndex, Class<?> clazz,Convert convert) {
		super();
		this.cloumnIndex = cloumnIndex;
		this.clazz = clazz;
		this.convert = convert;
	}
	public ExcelMapping(int cloumnIndex, Class<?> clazz,Convert convert,boolean nullable) {
		super();
		this.cloumnIndex = cloumnIndex;
		this.clazz = clazz;
		this.convert = convert;
		this.nullable = nullable;
	}
}
